const BASEURL = 'https://www.uinav.com/api/public/v1'

function sendRequest({url,method,data,header}){
	return new Promise((resolve,reject)=>{
		uni.request({
			url: BASEURL + url,
			method: method,
			data: data,
			header: header,
			success: res => {
				resolve(res.data.message)
			},
			fail:err=>{
				reject(err)
			}
		});
	})
}
export default sendRequest